__author__ = 'huangjian'
from django.conf.urls import patterns, include, url
from django.contrib import admin
from home.views import *
admin.autodiscover()

urlpatterns = patterns('home.views',
    url(r'^$', 'home', name='home'),
    url(r'^sayhi/',sayHi),
    url(r'^addcookie/',addCookie),
    url(r'^download/$',download),
    url(r'^download/(?P<project>[a-zA-Z]{1,})/$',downProject),
    url(r'^download/(?P<project>[a-zA-Z]{1,})/(?P<id>\d+)/$',downModule),
    url(r'^chgmodinfo/(?P<project>[a-zA-Z]{1,})/(?P<version>(\d+)\.(\d*))/(?P<type>[a-zA-Z]{1,})/$',chgModInfo),
)